#include<stdio.h>
int main()
{
	int a;
	int b;
	int n;
	scanf("%d %d",&a,&b);
	n=(a>b?a:b);
	while(1)
	{
		if(n%a==0&&n%b==0)
		{
			break;
		}
		n++;
	}
	printf("%d",n);
}
